package com.jweb.plugins.rpc.bean;

import com.jweb.plugins.rpc.annotation.RpcProvider;
import com.jweb.plugins.rpc.impl.handler.ServiceType;

public class Service {

	private Class<?> iface;
	private Class<?> impl;
	/* private Object implObj; */
	private ServiceType serviceType;// 协议类型
	private RpcProvider rpcProvider;

	public Service(Class<?> iface, Class<?> impl, ServiceType serviceType, RpcProvider rpcProvider) {
		super();
		this.iface = iface;
		this.impl = impl;
		/* this.implObj = implObj; */
		this.serviceType = serviceType;
		this.rpcProvider = rpcProvider;
	}

	public Class<?> getIface() {
		return iface;
	}

	public void setIface(Class<?> iface) {
		this.iface = iface;
	}

	public Class<?> getImpl() {
		return impl;
	}

	public void setImpl(Class<?> impl) {
		this.impl = impl;
	}

	public ServiceType getServiceType() {
		return serviceType;
	}

	public void setServiceType(ServiceType serviceType) {
		this.serviceType = serviceType;
	}

	public RpcProvider getRpcProvider() {
		return rpcProvider;
	}

	public void setRpcProvider(RpcProvider rpcProvider) {
		this.rpcProvider = rpcProvider;
	}

}
